#
# Copyright 2024 The Project Oak Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

package(
    default_visibility = ["//:default_visibility"],
    licenses = ["notice"],
)

cc_library(
    name = "oak_standalone",
    testonly = True,
    srcs = ["oak_standalone.cc"],
    hdrs = ["oak_standalone.h"],
    deps = [
        "//cc/crypto:client_encryptor",
        "//cc/crypto:encryption_key",
        "//cc/crypto:server_encryptor",
        "//cc/crypto/hpke:recipient_context",
        "//oak_containers_sdk:ffi",
        "//proto/session:messages_cc_proto",
        "@com_google_absl//absl/log",
        "@com_google_absl//absl/status:statusor",
    ],
)

cc_test(
    name = "oak_standalone_test",
    srcs = ["oak_standalone_test.cc"],
    deps = [
        ":oak_standalone",
        "//cc/attestation/verification:attestation_verifier",
        "//cc/attestation/verification:insecure_attestation_verifier",
        "//oak_containers_sdk:ffi",
        "//proto/attestation:verification_cc_proto",
        "//proto/session:messages_cc_proto",
        "@com_google_absl//absl/log",
        "@com_google_absl//absl/status:status_matchers",
        "@com_google_absl//absl/status:statusor",
        "@com_google_googletest//:gtest_main",
    ],
)
